package com.haoran.springboot.controller;

import com.haoran.springboot.model.Person;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SearchController {
    @RequestMapping(value = "/search",produces = {MediaType.APPLICATION_JSON_VALUE})
    public Person seach(String personName){
            return new Person("马六",26,"黑云寨");
    }
}
